package com.nodecollege.cloud.service;

import com.nodecollege.cloud.common.model.NCResult;
import com.nodecollege.cloud.common.model.QueryVO;
import com.nodecollege.cloud.common.model.po.UpmsTenant;

/**
 * @author LC
 * @date 2019/6/19 17:36
 */
public interface TenantService {

    /**
     * 获取所有UpmsTenant信息
     *
     * @param queryVO
     * @return
     */
    NCResult<UpmsTenant> getTenantList(QueryVO<UpmsTenant> queryVO);

    /**
     * 根据用户id查询租户信息
     *
     * @param queryVO
     * @return
     */
    NCResult<UpmsTenant> getTenantListByUserId(QueryVO<Long> queryVO);

    /**
     * 保存UpmsTenant
     *
     * @param upmsTenant
     * @return
     */
    void addTenant(UpmsTenant upmsTenant);

    /**
     * 更新UpmsTenant信息
     *
     * @param upmsTenant
     * @return
     */
    void updateTenant(UpmsTenant upmsTenant);

    /**
     *
     * @param upmsTenant
     * @return
     */
    UpmsTenant getTenantById(UpmsTenant upmsTenant);
}
